package com.chhuang.core.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Description 查询条件
 * @Author Darren Huang
 * @Date 2022-12-22 11:18
 */
@Data
@ApiModel(value = "查询条件", description = "用户分页查询是传递分页参数，查询条件")
public class QueryBean<T> {
    public static final String COLUMN_SP = ",";
    public static final String COLUMN_ORDER_SP = " ";

    @ApiModelProperty(value = "每页个数")
    protected long size;
    @ApiModelProperty(value = "当前页")
    protected long current;
    @ApiModelProperty(value = "排序集合字符串'column1,column2 desc'")
    protected String orderStr;
    @ApiModelProperty(value = "查询条件")
    protected T query;

    public QueryBean() {
        this.size = 10L;
        this.current = 1L;
    }

}
